//
//  Tower.swift
//  Gaoloumi
//
//  Created by Jasper on 4/14/16.
//  Copyright © 2016 Jasper. All rights reserved.
//

import UIKit
import AVOSCloud

let kTowerKeyName: String = "name"                   // 名字
let kTowerKeyCity: String = "city"                   // 所属城市(不用了)
let kTowerKeyAllCity: String = "allCity"             // 所属城市(news)
let kTowerKeyCountry: String = "countryName"         // 所属国家(news)
let kTowerKeyHeight: String = "height"               // 高度
let kTowerKeyFloor: String = "floor"                 // 楼层
let kTowerKeyTimeFinish: String = "timeFinish"       // 建成时间
let kTowerKeyPurpose: String = "purpose"             // 用途
let kTowerKeyStatus: String = "status"               // 状态

let kTowerKeyDescription: String = "descriptions"    // 描述


let kTowerKeyUser: String = "user"    // 图片提交人
let kTowerKeyIsShow: String = "isShow"    // 是否显示  审核用

class Tower: AVObject, AVSubclassing  {
    @NSManaged var name: String?
    @NSManaged var city:City?
    @NSManaged var allCity:AllCity?
    @NSManaged var countryName:String?
    @NSManaged var height: Float
    @NSManaged var floor: Int
    @NSManaged var timeFinish: Int  // 只是年份
    @NSManaged var purpose: String?
    @NSManaged var status: String?
    
    @NSManaged var descriptions: String?
    
    @NSManaged var user: AVUser?          //
    @NSManaged var isShow: Bool           //
    
    static func parseClassName() -> String! {
        return "Tower"
    }
}

